/*
-----------------
Unicorn Princess
Iteration 1
Rachel J. Morris
www.moosader.com
Dec 2009-Feb 2010
-----------------

_Global.h
*/

#ifndef _Global
#define _Global

#include <iostream>
#include <sstream>
#include <string>

using namespace std;

enum Action { FLYING=0, SHOOTING=1, DYING=2 };
enum BulletType { bSPARKLE=0, bFLOWER=1, bGEM=2, bHEART=3, bBULLET=4, bSMALLBULLET=5 };
enum ItemType { iFLOWER=0, iGEM=1, iHEART=2, iONEUP=3 };
enum Direction { LEFT, RIGHT, UP, DOWN };
enum EnemyType { SCOUT=1, TROOPER=2 };
enum MovementType { LINE, TOWARDS_PLAYER, AWAY_PLAYER, WAVE };
enum BulletDamage { PLAYER, ENEMY, ALL };

const int MAX_BULLETS = 10;
const int IMGAMT = 9;
const int SNDAMT = 3;
const int MSCAMT = 2;

const string CONFIG_FILE = "config.txt";
const string ASSET_LIST = "assetList.txt";

//http://www.cplusplus.com/forum/articles/9645/
string IntToString( int number )
{
    stringstream output;
    output << number;

    return output.str();
}

int StringToInt( string value )
{
    int number;
    stringstream output(value);
    output >> number;
    return number;
}

#endif
